/**
 * @author hoang.pt
 * @version $Id: Student.java 246 2010-09-15 10:47:00Z phantichhoang $
 */

package test4.problem1;

import java.io.Serializable;

/**
 * Student entity
 * @author hoang.pt
 */
public class Student implements Serializable{

    String rollNumber;

    String name;

    String address;

    int age;

    public Student(String rollNumber, String name, String address, int age) {
        this.rollNumber = rollNumber;
        this.name = name;
        this.address = address;
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRollNumber() {
        return rollNumber;
    }

    public void setRollNumber(String rollNumber) {
        this.rollNumber = rollNumber;
    }


    /**
     * @author hoang.pt
     * @return String
     */
    @Override
    public String toString() {
        return "Student has rollnumber: " +rollNumber+ ", name: " +name+ ", address: " +address+ ", age: " +age+ ".";
    }

}
